package com.ctg.payroll2.dao.workflow;

import java.sql.SQLException;

import com.ctg.payroll2.bean.filter.workflow.FlowRoleFilter;
import com.ctg.payroll2.bean.po.workflow.FlowRole;
import com.ctg.platform.util.Page;

public interface WorkflowRoleDao {
	public Page queryFlowRoleByFilter(FlowRoleFilter filter);

	/**
	 * sami,根据roleId查询RoleUser
	 * 
	 * @param paraMap
	 * @param statr
	 * @param limit
	 * @return
	 */
	public Page queryFlowUserByRole(Object paraMap, Integer start, Integer limit);

	/**
	 * sami,根据flow_orgid查询未被注册过的RoelUser
	 * 
	 * @param paraMap
	 * @param statr
	 * @param limit
	 * @return
	 */
	public Page queryRoleUserNotInRoleUser(Object paraMap, Integer start,
			Integer limit);

	/**删除RoleUser
	 * @param paraMap
	 * @return
	 */
	public Integer deleteRoleUser(Object paraMap);
	
	public void insertUserByRole(Object paraMap);

	public Long insertFlowRole(FlowRole role) throws SQLException;

	public int deleteFlowRoleByIds(String ids) throws SQLException;

	public int updateFlowRole(FlowRole role) throws SQLException;
}
